import { ContactList } from 'vant'
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
   userInfo:{
    gendar:0,
    imgurl:'',
    phone:'',
    username:'',
    id:'',
    pwd:''
   },
   token:''
  },
  mutations: {
      addUser(state,data){
        state.userInfo=data.user;
        //state.userInfo.imgurl=`http://101.200.88.248:8044/${data.user.imgurl}`
        state.token=data.token
      }
  },
  actions: {

  }
})
